<nav class="navbar navbar-fixed-top navbar-default">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">WS-TASK</a>
        </div>
        <div class="collapse navbar-collapse" id="navbarToggler">
            <ul id="navbarul" class="nav navbar-nav">
                <li>
                    <a name="nodes" href="javascript:void(0);">节点</a>
                </li>
            </ul>
        </div>
    </div>
</nav>
<script>
    $(function () {
        $("#navbarul > li > a").on('click',function () {
            $('#navbarul > li').removeClass('active');
            var name = $(this).attr('name');
            includeHtml('main','/views/'+name+'.html');
            $(this).parent('li').addClass('active');
        });
    });
</script>